home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 November / november_2001.iso / Browsers / Netscape 6.1 / browser.xpi / bin / res / forms.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2001-06-13  |  8.2 KB  |  382 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is mozilla.org code.
  13.  *
  14.  * The Initial Developer of the Original Code is Netscape
  15.  * Communications Corporation.  Portions created by Netscape are
  16.  * Copyright (C) 1998 Netscape Communications Corporation. All
  17.  * Rights Reserved.
  18.  *
  19.  * Contributor(s): 
  20.  */
  21.  
  22. /** 
  23.   Styles for old GFX form widgets
  24.  **/ 
  25.  
  26.  
  27. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  28.  
  29. *|*:fieldset-content {
  30.   display: block;
  31. }
  32.  
  33. form {
  34.   display: block;
  35.   margin: 0 0 1em 0;
  36. }
  37.  
  38. /* miscellaneous form elements */
  39.  
  40. label {
  41.   /* our <label> support is badly broken. (b=47149) */
  42.   vertical-align: bottom;
  43.   padding-left: 3px;
  44.   padding-right: 3px;
  45. }
  46.  
  47. legend {
  48.   padding-left: 2px;
  49.   padding-right: 2px;
  50.   border: none;
  51. }
  52.  
  53. fieldset {
  54.   display: block;
  55.   border: 2px solid black;
  56.   padding: 4px 4px 4px 4px;
  57.   margin-left: 2px;
  58.   margin-right: 2px;
  59. }
  60.  
  61. /* default inputs, text inputs, and selects */
  62. input {
  63.   background-color: -moz-Field;
  64.   border: 2px inset ThreeDFace;
  65.   color: -moz-FieldText;
  66.   cursor: text;
  67.   font: field;
  68.   text-align: start;
  69.   vertical-align: bottom;
  70.   -moz-box-sizing: border-box;
  71.   -moz-user-focus: normal;
  72.   -moz-binding: url("resource:///res/builtin/platformHTMLBindings.xml#inputFields");
  73.   padding: 1px 0 1px 0;
  74. }
  75.  
  76. textarea {
  77.   background-color: -moz-Field;
  78.   border: 2px inset ThreeDFace;
  79.   color: -moz-FieldText;
  80.   cursor: text;
  81.   font: field;
  82.   margin: 1px 0 1px 0;
  83.   text-align: start;
  84.   vertical-align: bottom;
  85.   -moz-box-sizing: border-box;
  86.   -moz-user-focus: normal;
  87.   -moz-binding: url("resource:///res/builtin/platformHTMLBindings.xml#textAreas");
  88. }
  89.  
  90. textarea > scrollbar {
  91.   cursor: default;
  92. }
  93.  
  94. *|*:-moz-singleline-textcontrol-frame {
  95.   overflow: hidden;
  96.   white-space: nowrap;
  97.   background-color: inherit;
  98.   text-align: inherit;
  99. }
  100.  
  101. select {
  102.   font: list;
  103.   background-color: -moz-Field;
  104.   border: 2px inset ThreeDFace;
  105.   margin: 0;
  106.   vertical-align: bottom;
  107.   color: -moz-FieldText;
  108.   white-space: nowrap;
  109.   text-align: start; 
  110.   cursor: default;
  111.   -moz-user-select: none;
  112.   -moz-user-focus: normal;
  113.   -moz-box-sizing: border-box;
  114. }
  115.  
  116. select[size] {
  117.   padding: 1px 0 1px 0;
  118. }
  119. select[size="1"] {
  120.   padding: 0;
  121. }
  122.  
  123. select > input[type="button"] {
  124.   position: static ! important;
  125.   white-space: nowrap;
  126.   background-image: url("arrow.gif") !important;
  127.   background-repeat: no-repeat !important;
  128.   background-position: center !important;
  129.   width: 12px;
  130.   height: 12px;
  131.   -moz-user-focus: none;
  132. }
  133.  
  134. select > input[type="button"]:active {
  135.   background-image: url("arrowd.gif") !important;
  136. }
  137.  
  138. select[size], :-moz-select-scrolled-content {
  139.   overflow: -moz-scrollbars-vertical;
  140. }
  141.  
  142. select:-moz-dummy-option { 
  143.   visibility: hidden; 
  144.   content: "XX"; /* demo 8, edge case test 1 */
  145. }
  146.  
  147. *|*:-moz-display-comboboxcontrol-frame {
  148.   overflow: hidden;
  149.   white-space: nowrap;
  150.   background-color: inherit;
  151.   color: inherit;
  152.   text-align: inherit;
  153.   padding: 1px 0 1px 4px;
  154.   -moz-user-select: none;
  155. }
  156.  
  157. option {
  158.   min-height: 1em;
  159.   display: block;
  160.   -moz-user-select: none;
  161.   -moz-user-focus: none;
  162. }
  163.  
  164. select > option {
  165.   padding: 0 5px 0 3px;
  166. }
  167.  
  168. option[_moz-option-selected] {
  169.   color: HighlightText ! important;
  170.   background-color: Highlight ! important;
  171. }
  172.  
  173. optgroup {
  174.   display: block;
  175.   font: list;
  176.   font-style: italic;
  177.   font-weight: bold;
  178.   -moz-user-select: none;
  179.   -moz-user-focus: none;
  180. }
  181.  
  182. optgroup > option {
  183.   padding-left: 20px;
  184.   font-style: normal;
  185.   font-weight: normal;
  186. }
  187.  
  188. optgroup:before {
  189.   display: block;
  190.   content: attr(label);
  191. }
  192.  
  193. *|*:-moz-dropdown-list {
  194.   background-color: inherit;
  195.   border: 1px outset black; 
  196.   border-top-style: none;
  197.   z-index: 2147483647;
  198.   -moz-user-select: none;
  199.  
  200. input[disabled],
  201. textarea[disabled],
  202. option[disabled],
  203. select[disabled],
  204. select[disabled] > :-moz-display-comboboxcontrol-frame {
  205.   color: GrayText;
  206.   cursor: default;
  207. }
  208.  
  209. /* hidden inputs */
  210. input[type="hidden"] {
  211.   border: none;
  212.   visibility: hidden;
  213.   -moz-binding: none;
  214. }
  215.  
  216. /* image buttons */
  217. input[type="image"] {
  218.   border: none;
  219.   vertical-align: baseline;
  220.   background-color: transparent;
  221.   cursor: pointer;
  222.   font-family: sans-serif;
  223.   font-size: small;
  224.   -moz-binding: none;
  225.   padding: 0;
  226. }
  227.  
  228. input[type="image"][disabled] {
  229.   cursor: default;
  230. }
  231.  
  232. input[type="image"]:focus {
  233.   -moz-outline: 1px dotted -moz-FieldText;
  234. }
  235.  
  236. /* file selector */
  237. input[type="file"] {
  238.   white-space: nowrap;
  239.   border: none;
  240.   cursor: default;
  241.   -moz-binding: none;
  242.   padding: 0;
  243. }
  244.  
  245. /* button part of file selector */
  246. input[type="file"] > input[type="button"] {
  247.   height: inherit;
  248. }
  249.  
  250. input[type="file"] > input[type="button"]:-moz-focus-inner
  251.  {
  252.   padding: 0px 2px 0px 2px;
  253.   border: 1px dotted transparent;
  254. }
  255.  
  256. /* radio buttons */
  257. input[type="radio"] {
  258.   border: 2px inset ThreeDFace;
  259.   background-color: -moz-Field;
  260.   color: -moz-FieldText;
  261.   width: 12px;
  262.   height: 12px;
  263.   cursor: default;
  264.   vertical-align: baseline;
  265.   -moz-border-radius: 100%;
  266.   -moz-binding: none;
  267.   padding: 0;
  268. }
  269.  
  270. /* check boxes */
  271. input[type="checkbox"] {
  272.   border: 2px inset ThreeDFace;
  273.   background-color: -moz-Field;
  274.   color: -moz-FieldText;
  275.   width: 13px;
  276.   height: 13px;
  277.   cursor: default;
  278.   vertical-align: bottom;
  279.   -moz-binding: none;
  280.   margin: 3px 4px 3px 4px;
  281.   padding: 0;
  282. }
  283.  
  284. /* common features of radio buttons and check boxes */
  285. input[type="radio"][disabled],
  286. input[type="radio"][disabled]:active,
  287. input[type="radio"][disabled]:hover,
  288. input[type="radio"][disabled]:hover:active,
  289. input[type="checkbox"][disabled],
  290. input[type="checkbox"][disabled]:active,
  291. input[type="checkbox"][disabled]:hover,
  292. input[type="checkbox"][disabled]:hover:active {
  293.   padding: 1px;
  294.   border: 1px inset ThreeDShadow;
  295.   background-color: GrayText;
  296. }
  297.  
  298. input[type="checkbox"]:focus,
  299. input[type="radio"]:focus {
  300.   border-style: groove;
  301. }
  302.  
  303. input[type="checkbox"]:hover:active,
  304. input[type="radio"]:hover:active {
  305.   border-style: inset;
  306.   background-color: ThreeDHighlight;
  307. }
  308.  
  309. *|*:-moz-radio {
  310.   background-color: -moz-FieldText;
  311.   width: 4px;
  312.   height: 4px;
  313.   left: 6px;
  314.   top: 6px;
  315.   -moz-border-radius: 3px;
  316. }
  317.  
  318. /* buttons */
  319. button, 
  320. input[type="reset"],
  321. input[type="button"],
  322. input[type="submit"] { 
  323.   border: 2px outset ButtonFace;
  324.   background-color: ButtonFace;
  325.   color: ButtonText; 
  326.   padding: 0px 1px 0px 1px;
  327.   font: button;
  328.   cursor: default;
  329.   white-space: pre;
  330.   -moz-box-sizing: border-box;
  331.   -moz-user-select: none;
  332.   -moz-user-focus: normal;
  333.   -moz-binding: none;
  334. }
  335.  
  336. *|*:button-content {
  337.   display: block;
  338.   text-align: center;
  339. }
  340.  
  341. button:active:hover,
  342. input[type="reset"]:active:hover,
  343. input[type="button"]:active:hover,
  344. input[type="submit"]:active:hover {
  345.   border-style: inset;
  346.   padding: 0px 0 0 2px;
  347. }
  348.  
  349. button:-moz-focus-inner,
  350. input[type="reset"]:-moz-focus-inner,
  351. input[type="button"]:-moz-focus-inner,
  352. input[type="submit"]:-moz-focus-inner {
  353.   padding: 1px 2px 1px 2px;
  354.   border: 1px dotted transparent;
  355. }
  356.  
  357. button:focus:-moz-focus-inner,
  358. input[type="reset"]:focus:-moz-focus-inner,
  359. input[type="button"]:focus:-moz-focus-inner,
  360. input[type="submit"]:focus:-moz-focus-inner {
  361.   border-color: ButtonText;
  362. }
  363.  
  364. button[disabled]:active, button[disabled],
  365. input[type="reset"][disabled]:active,
  366. input[type="reset"][disabled],
  367. input[type="button"][disabled]:active,
  368. input[type="button"][disabled],
  369. input[type="file"][disabled] > input[type="button"],
  370. input[type="file"][disabled] > input[type="button"]:active,
  371. select[disabled] > input[type="button"],
  372. select[disabled] > input[type="button"]:active,
  373. input[type="submit"][disabled]:active,
  374. input[type="submit"][disabled] {
  375.   border: 1px outset ButtonShadow;
  376.   padding: 1px 1px 1px 1px;
  377.   color: GrayText;
  378. }
  379.  
  380.  
  381.